cmake_minimum_required(VERSION 3.4.1)
project(${TARGETS})

# 如果想要生成的可执行文件拥有符号表，可以gdb调试，就直接加上这句
add_definitions("-Wall -g")

include_directories(
    ${PROJECT_SOURCE_DIR}/include
    ${PROJECT_SOURCE_DIR}/include/kisql
    ${PROJECT_SOURCE_DIR}/include/data
    ${PROJECT_SOURCE_DIR}/include/dao
    ${PROJECT_SOURCE_DIR}/include/json
    ${PROJECT_SOURCE_DIR}/include/presenter
    ${PROJECT_SOURCE_DIR}/include/sock
    ${PROJECT_SOURCE_DIR}/include/syslog
    ${PROJECT_SOURCE_DIR}/include/tool
)

#连接库目录
LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/lib)

add_subdirectory(src)

